//
//  ChannelCollectionViewCell.m
//  CapriceMusic
//
//  Created by dllo on 16/1/9.
//  Copyright © 2016年 MYX. All rights reserved.
//

#import "ChannelCollectionViewCell.h"

@implementation ChannelCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.channelImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        [self addSubview:self.channelImageView];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    [super applyLayoutAttributes:layoutAttributes];
    self.channelImageView.frame = CGRectMake(0, 0, self.frame.size.width - 2, self.frame.size.height - 2);
}

@end
